package chapter7.No7_6_线程组内异常处理.demo1;

/**
 * 线程组内某个线程出现异常不会影响其他线程运行!
 * Created by Administrator on 2016/12/8.
 */
public class Main {
    public static void main(String[] args) {
        ThreadGroup group = new ThreadGroup("我的线程组");
        for(int i = 0; i < 10; i++) {
            MyThread a = new MyThread(group, "A"+(i+1), "你好"+i);
            a.start();
        }
        MyThread a = new MyThread(group, "捣乱线程名字A", null);
        a.start();
    }
}
